from tkinter import *

print('Введите начальную координату X:')
X = int(input())
print('Введите начальную координату Y:')
Y = int(input())

coords = [0, 0, 10, 0, 10, 10, 20, 10, 20, 20, 10, 20, 30, 20, 30, 10, 20, 10, 0, 20]



root =root = Tk()
root.title("ИТ марафон")
root.geometry("500x500")

canvas = Canvas(bg="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_polygon(coords[0] *X, coords[1] *Y,
                      coords[3] *X, coords[4] *Y,
                      coords[5] *X, coords[6] *Y,
                      coords[7] *X, coords[8] *Y,
                      coords[9] *X, coords[10] *Y,
                      coords[11] *X, coords[12] *Y,
                      coords[13] *X, coords[14] *Y,
                      coords[15] *X, coords[16] *Y,
                      coords[17] *X, coords[18] *Y,
                      coords[19] *X, coords[3] *Y,
                      )

root.mainloop()
